namespace CSharpPro._1030;

public class Demo
{
    public void TestPrint()
    {
        Child child = new Child();
        child.Print();
        
        Console.WriteLine("---------");
        Father f1 = new Child();
        f1.Print();
        Father f2 = new Son();
        f2.Print();
    }
}